/*****************************************************************************
 *
 *                      HUSONG PROPRIETARY INFORMATION
 *
 *          The information contained herein is proprietary to HUSONG
 *           and shall not be reproduced or disclosed in whole or in part
 *                    or used for any design or manufacture
 *              without direct written authorization from HUSONG.
 *
 *            Copyright (c) 2015 by HUSONG.  All rights reserved.
 *
 *****************************************************************************/
package me.send.broker.cons;

/**
 * @author maxmin
 *
 * @date 2015年8月5日 上午9:00:43
 */
public class OrderCons {
	
	public final static int ORDER_TYPE_DAIBAN=1;
	public final static int ORDER_TYPE_DAIGOU=2;
	public final static int ORDER_TYPE_DAISONG=3;
	
	/**
	 * 呼叫中
	 */
	public final static int CREATED = 1;
	/**
	 * 已抢单
	 */
	public final static int COMPETED = 2;
	/**
	 * 已接单
	 */
	public final static int ACCEPTED = 3;
	/**
	 * 已购买
	 */
	public final static int PURCHASED = 4;
	/**
	 * 已取货
	 */
	public final static int COLLECTED = 5;
	/**
	 * 已完成
	 */
	public final static int FINISHED = 6;
	/**
	 * 代付款
	 */
	public final static int TO_BE_PAID = 7;
	/**
	 * 交易结束
	 */
	public final static int END_OF_TRANSACTION = 8;
	/**
	 * 已付款
	 */
	public final static int PAID = 9;
	/**
	 * 申请退款
	 */
	public final static int APPLY_REFUND = 10;
	/**
	 * 退款中
	 */
	public final static int REFUNDING = 11;
	/**
	 * 已退款
	 */
	public final static int REFUNDED = 12;

	// 推送消息的内容

	public final static String COMPETED_STR = "已有经纪人抢单，请保持电话通畅。";
	
	public final static String ACCEPTED_STR = "用户已选择你为其经纪人。";
	
	public final static String PURCHASED_STR = "经纪人已购买，请保持电话通畅。";
	
	public final static String CANCEL_STR = "经纪人已同意取消订单。";
	
	public final static String COLLECTED_STR = "经纪人已取货，请保持电话通畅。";
	
	public final static String FINISHED_STR = "经纪人已办完，请保持电话通畅。";
	
	public final static String FINISHED_SONGDA_STR = "经纪人已成功送达，等待您支付消费。";
	
	public final static String COMPLETED_STR = "";
	
	public final static String TO_BE_PAID_STR = "";
	
	public final static String END_OF_TRANSACTION_STR = "";
	
	public final static String PAID_STR = "";
	
	public final static String APPLY_REFUND_STR = "";
	
	public final static String REFUNDING_STR = "";
	
	public final static String REFUNDED_STR = "";
	
	/**
	 * 操作数据库的受影响行数
	 */
	public final static int ONE_ROW = 1;
	
	//抢单错误原因 
	/**
	 * 失败
	 */
	public final static int FAIL = 0;
	
	/**
	 * 已抢过单
	 */
	public final static int HAS_COMPETED = 2;
	public final static String HAS_COMPETED_STR = "已抢过该订单";
	/**
	 * 在限制抢单时间内抢单
	 */
	public final static int LIMET_COMPET_TIME = 3;
	public final static String LIMET_COMPET_TIME_STR = "2分钟之内无法连续抢单";
	/**
	 * 不能抢自己发布的订单
	 */
	public final static int LIMET_ORDER_BY_SELF = 4;
	public final static String LIMET_ORDER_BY_SELF_STR = "不能抢自己发布的订单";
	
	

}
